#define _CRT_SECURE_NO_WARNINGS
#include<stdio.h>
int Cifan(int m,int n)
{
	if (n == 0)
		return 1;
	else
		return Cifan(m, n - 1) * m;
}
int main()
{
	int m = 0; int n = 0;
	scanf("%d%d", &m,&n);
	int a=Cifan(m,n);
	printf("%d", a);
	return 0;
}